package com.fulihui.information.dal.dataobj;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;

import java.util.Date;

import static com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant.DATETIME;
import static com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant.VARCHAR;

@Table("info_category")
public class InfoCategory {
    @Column(name = "code", type = VARCHAR)
    private String code;

    @Column(name = "name", type = VARCHAR)
    private String name;

    @Column(name = "parent_code", type = VARCHAR)
    private String parentCode;

    @Column(name = "product_code", type = VARCHAR)
    private String productCode;

    @Column(name = "sort_index", type = VARCHAR)
    private Integer sortIndex;

    @Column(name = "next_code", type = VARCHAR)
    private String nextCode;

    @Column(name = "show_advert", type = VARCHAR)
    private String showAdvert;

    @Column(name = "display", type = VARCHAR)
    private String display;

    @Column(name = "href", type = VARCHAR)
    private String href;

    @Column(name = "gmt_create", type = DATETIME)
    private Date gmtCreate;

    @Column(name = "gmt_modified", type = DATETIME)
    private Date gmtModified;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode == null ? null : parentCode.trim();
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode == null ? null : productCode.trim();
    }

    public Integer getSortIndex() {
        return sortIndex;
    }

    public void setSortIndex(Integer sortIndex) {
        this.sortIndex = sortIndex;
    }

    public String getNextCode() {
        return nextCode;
    }

    public void setNextCode(String nextCode) {
        this.nextCode = nextCode == null ? null : nextCode.trim();
    }

    public String getShowAdvert() {
        return showAdvert;
    }

    public void setShowAdvert(String showAdvert) {
        this.showAdvert = showAdvert == null ? null : showAdvert.trim();
    }

    public String getDisplay() {
        return display;
    }

    public void setDisplay(String display) {
        this.display = display == null ? null : display.trim();
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href == null ? null : href.trim();
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }
}